package com.hfi.ood.litejunit.v2.biz;

import com.hfi.ood.litejunit.v2.biz.calculator.CalculatorSuite;
import com.hfi.ood.litejunit.v2.biz.person.PersonTest;
import com.hfi.ood.litejunit.v2.framework.Test;
import com.hfi.ood.litejunit.v2.framework.TestSuite;

/**
 * @author ChangLiang
 * @date 2020/5/27
 */
public class AllTestSuite {

    public static Test suite() {
        TestSuite allTestSuite = new TestSuite("All Test");

        // 通过这种方式维护好TestSuite->...->TestSuite->TestCase这个关联关系
        allTestSuite.addTest(CalculatorSuite.suite());
        // 通过这种方式维护好TestSuite->TestCase这个一级关联关系
        allTestSuite.addTestSuite(PersonTest.class);

        return allTestSuite;
    }
}
